#include "MyMap.h"
#include "Myset.h"
#include <iostream>
using namespace std;


int main()
{
	/*map<int,int> m;
	m.insert(make_pair(2,2));
	m.insert(make_pair(6, 7));
	m.insert(make_pair(5, 2));
	m[11]++;*/


	ztb::Myset<int> s;
	s.Insert(5);
	s.Insert(2);
	s.Insert(7);
	ztb::Myset<int>::iterator it = s.begin();
	while (it != s.end())
	{
		cout << *it << " ";
		++it;
	}


	cout << endl;


	ztb::MyMap<int, int> m;
	m.Insert(make_pair(2, 7));
	m.Insert(make_pair(22, 4));
	m.Insert(make_pair(5, 1));

	m[22] = 90;
	m[242] = 930;
	m[222] = 90;
	m[252] = 90;
	m[2222] = 90;

	auto mit = m.begin();
	while (mit != m.end())
	{
		cout << (mit->first)<< " " << ++(mit->second) << endl;
		++mit;
	}
	return 0;
}